

// querystring 模块提供了用于解析和格式化网址查询字符串的实用工具

let qs = require("querystring");


let paraString = "username=lisi&age=18&tel=13111111111"

let obj = qs.parse(paraString)
console.log(obj,obj.username,obj.tel,obj.age);

let obj2 = { x: 11, y: 99, z: "demo" };
let str = qs.stringify(obj2)
console.log(str);
